Skip to content

Avoid throwing inside clojure-match-next-def on 0 arity def-like forms #424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2017

Conversation

emidln
Copy link
Contributor

@emidln emidln commented Jan 27, 2017

Fixes #423

@bbatsov
Copy link
Member

bbatsov commented Mar 3, 2017

Looks good to me, but ideally this should have a unit test as well.

@Malabarba
Copy link
Member

Hi Brandon. Sorry we left this unreviewed for so long. =/
Indeed, it would be nice to have a unit test, specially since this is a bug fix. But if that's too much trouble I'm fine with accepting this without.

@@ -664,7 +664,9 @@ Called by `imenu--generic-function'."
(down-list)
(forward-sexp)
(while (not found?)
(forward-sexp)
(condition-case nil
(forward-sexp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ignore-errors (forward-sexp)) is shorter and does the same.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. :-)

@bbatsov bbatsov merged commit 02286ec into clojure-emacs:master Apr 7, 2017
slipset pushed a commit to slipset/clojure-mode that referenced this pull request Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants